<?php 
return array(
	'attributeLabels' => array(
		'create_time' => '发布时间',
	),	
	
	'relations' => array(
		'web' => array(CActiveRecord::BELONGS_TO, 'Website', 'web_id'),
	),
	
	'rules' => array(
		array('web_id,uid','required'),
	),
	
	'tableName' => 'web_ad',
	'behaviors' => array(
		'userScope' => array(
			'class' => 'coms.behaviors.userScopes.DefaultScope',
			'relatedFields' => array(
				'uid',
			),
			'autoRun' => false,
		),
		'uidResolver' => array(
			'class' => 'coms.behaviors.AutoIdResolve',
		),
		'webidResolver' => array(
			'class' => 'coms.behaviors.mall.AutoWebIdResolve',
			'uid' => 'uid',
		),
	),	
	'_import' => array(
		array('*', 'models.Ad//*'),
	),
);
?>